<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>注册页面</title>
	<%@include file="../common/header.jsp"%>

<style type="text/css">
	h1 {
		text-align: center;
		margin-top: 200px;
	}
	
	h1 a {
		color:red;
	}
</style>
</head>
<body>
		<div id="header">
				<img class="logo_img" alt="" src="static/img/logo.png" >
				<div>
                    <c:choose>
                        <c:when	test="${sessionScope.student != null}">
                            <span>欢迎<span class="um_span">${sessionScope.student.username}</span>光临图书管理系统</span>
                            <a href="orderServlet?action=myPage">我的预订</a>
                            <a href="studentServlet?action=logout">注销</a>&nbsp;&nbsp;
                        </c:when>
                        <c:when	test="${sessionScope.manager != null}">
                            <span>欢迎<span class="um_span">${sessionScope.manager.username}</span>光临图书管理系统</span>
                            <a href="pages/manager/manager.jsp">后台管理</a>
                            <a href="managerServlet?action=logout">注销</a>&nbsp;&nbsp;
                        </c:when>
                        <c:otherwise>
                            <a href="pages/user/login.jsp">登录</a> |
                            <a href="pages/user/regist.jsp">管理员登陆</a> &nbsp;&nbsp;
                        </c:otherwise>
                    </c:choose>
				</div>
		</div>
		
		<div id="main">
		
			<h1>欢迎回来 <a href="index.jsp">转到主页</a></h1>
	
		</div>

		<%@include file="../common/footer.jsp"%>

</body>
</html>